package com.hyy.eb.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.hyy.eb.model.EbProduct;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service//业务员的证
public class EbProductServiceImpl implements EbProductService {
    @Autowired
    private com.hyy.eb.mapper.EbProduct ebproductm;
    @Override
    public List<EbProduct> selectList(Integer psize, Integer pageSize) {
        //web--service--mapper--数据库
        Page<EbProduct> page = new Page<>(psize,pageSize);
        Page<com.hyy.eb.model.EbProduct> productPage = ebproductm.selectPage(page,null);
        return productPage.getRecords();
    }
}
